package com.demo.service;

import com.demo.structure.UserStruct;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
import org.springframework.stereotype.Service;

@Service
public interface DemoDllService extends Library {
    DemoDllService lib = Native.load("demoDll", DemoDllService.class);

    int sum_array(int[] data, int len);

    int creatUser(UserStruct userStruct);

    int creatUserPointer(UserStruct.ByReference user, byte[] mark);

    int getFilePath(Pointer[] mark, IntByReference size);

    int getUserList(UserStruct.ByReference[] userArr, IntByReference num);

    int resetRfi(Pointer rfi);

    int readDataPathArr(Pointer[] dataPath, int size);

    void hello();

    void getNet();
}
